add_definitions(-DLIBCLANGMM_TESTS_PATH="${CMAKE_CURRENT_SOURCE_DIR}")

add_executable(code_complete_results_test code_complete_results_test.cc)
target_link_libraries(code_complete_results_test clangmm)
add_test(code_complete_results_test code_complete_results_test)

add_executable(completion_string_test completion_string_test.cc)
target_link_libraries(completion_string_test clangmm)
add_test(completion_string_test completion_string_test)

add_executable(cursor_test cursor_test.cc)
target_link_libraries(cursor_test clangmm)
add_test(cursor_test cursor_test)

add_executable(diagnostics_test diagnostics_test.cc)
target_link_libraries(diagnostics_test clangmm)
add_test(diagnostics_test diagnostics_test)

add_executable(source_location_test source_location_test.cc)
target_link_libraries(source_location_test clangmm)
add_test(source_location_test source_location_test)

add_executable(token_test token_test.cc)
target_link_libraries(token_test clangmm)
add_test(token_test token_test)

add_executable(translation_unit_test translation_unit_test.cc)
target_link_libraries(translation_unit_test clangmm)
add_test(translation_unit_test translation_unit_test)
